package com.xzx.shop_front_api.service.impl;

import com.xzx.shop_front_api.entity.exam.UserDetails;
import com.xzx.shop_front_api.mapper.exam.UserDetailsMapper;
import com.xzx.shop_front_api.service.UserDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class UserDetailsServiceImpl implements UserDetailsService {
    @Autowired
    private UserDetailsMapper userDetailsMapper;
    @Override
    @Transactional(rollbackFor = RuntimeException.class)
    public int insertUserDetails(UserDetails userDetails) {
        return userDetailsMapper.insert(userDetails);
    }
}
